//
//  UIImage+MJ.h
//  新浪微博
//
//  Created by apple on 13-10-26.
//  Copyright (c) 2013年 itcast. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (MJ)
#pragma mark 加载全屏的图片
+ (UIImage *)fullscrennImage:(NSString *)imgName;

#pragma mark 可以自由拉伸的图片
+ (UIImage *)resizedImage:(NSString *)imgName;

#pragma mark 可以自由拉伸的图片
+ (UIImage *)resizedImage:(NSString *)imgName xPos:(CGFloat)xPos yPos:(CGFloat)yPos;



+(void)loadImageWithUrlStr:(NSString *)ImageUrl loadSuccessBlock:(void (^)(NSData *))successBlock loadFailureBlock:(void (^)())failureBlock;
/**
 *  xhq
 *
 *  @param color <#color description#>
 *  @param size  <#size description#>
 *
 *  @return <#return value description#>
 */
+ (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;

+ (UIImage *)imageWithColor:(UIColor *)color;
/**
 *  按比例调整图片
 *
 */
+ (UIImage *)hq_imageWithName:(NSString *)imageName Ratio:(CGFloat)ratio;


- (UIImage *)imageByApplyingAlpha:(CGFloat) alpha;

@end
